<?php
!defined('QAPP') AND exit('Forbidden');

include "funcs/allinone.php";

if (MLang) {
    $i18n = i18nclass::instance();
    $i18n->setPath(AppDir . '/languages');
    $i18n->useLangFromGET(true);

    $lang = getGet("lang", "");
    if ($lang) {
        $i18n->setDefaultLang(cookie_get("lang"));
        cookie_set("lang", $lang);
    }
}